package com.zzw.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author 赵志伟
 * @version 1.0
 */
@SuppressWarnings({"all"})
//@Aspect
//@Component
public class ControllerAspect {

    //@Pointcut("execution(public String com.zzw.controller.IndexController.hello())")
    public void myPointCut() {

    }

    //@AfterReturning(value = "myPointCut()", returning = "res")
    public void successLog(JoinPoint joinPoint, Object res) {
        System.out.println("res=" + res);
    }
}
